Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,13 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
gr.load("models/HuggingFaceTB/SmolLM2-1.7B-Instruct")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
+
this = gr.load("models/HuggingFaceTB/SmolLM2-1.7B-Instruct")
|
| 4 |
+
print(this)
|
| 5 |
+
def run_llm(inp,history):
|
| 6 |
+
yield this(inp)
|
| 7 |
+
|
| 8 |
+
with gr.Blocks() as app:
|
| 9 |
+
chat=gr.ChatInterface(
|
| 10 |
+
fn=run_llm,
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
app.launch()
|