tree3po commited on
Commit
32aa2ad
·
verified ·
1 Parent(s): 1609b8d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -1
app.py CHANGED
@@ -1,3 +1,13 @@
1
  import gradio as gr
2
 
3
- gr.load("models/HuggingFaceTB/SmolLM2-1.7B-Instruct").launch()
 
 
 
 
 
 
 
 
 
 
 
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()