Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,9 @@ import gradio as gr
|
|
3 |
this = gr.load("models/HuggingFaceTB/SmolLM2-1.7B-Instruct")
|
4 |
print(this)
|
5 |
def run_llm(inp,history):
|
6 |
-
|
|
|
|
|
7 |
|
8 |
with gr.Blocks() as app:
|
9 |
chat=gr.ChatInterface(
|
|
|
3 |
this = gr.load("models/HuggingFaceTB/SmolLM2-1.7B-Instruct")
|
4 |
print(this)
|
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(
|