likhonsheikh commited on
Commit
5d385b1
·
verified ·
1 Parent(s): 0bc6cab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -1,11 +1,12 @@
1
  import gradio as gr
2
 
3
  with gr.Blocks(fill_height=True) as demo:
4
- with gr.Row():
5
- gr.Markdown("## ✨ CohereLabs/c4ai-command-r7b-12-2024")
6
- gr.Interface.load(
7
- "models/CohereLabs/c4ai-command-r7b-12-2024",
8
- live=True # Optional: enables real-time input updates
9
- )
 
10
 
11
  demo.launch()
 
1
  import gradio as gr
2
 
3
  with gr.Blocks(fill_height=True) as demo:
4
+ gr.Markdown("## 🔮 CohereLabs/c4ai-command-r7b-12-2024 Model")
5
+
6
+ # Load the hosted model interface (no token, no login)
7
+ loaded_model = gr.Interface.load("models/CohereLabs/c4ai-command-r7b-12-2024")
8
+
9
+ # Render the loaded model UI inside your Blocks layout
10
+ loaded_model.render()
11
 
12
  demo.launch()