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