Omnibus commited on
Commit
43834df
1 Parent(s): e9060de

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -6,4 +6,12 @@ import gradio as gr
6
 
7
  this = gr.load("models/keyfan/grok-1-hf",cache_examples=False)
8
  print(this)
9
- print(this("hello?"))
 
 
 
 
 
 
 
 
 
6
 
7
  this = gr.load("models/keyfan/grok-1-hf",cache_examples=False)
8
  print(this)
9
+ def run_inf(inp):
10
+ return this(inp)
11
+
12
+ with gr.Blocks() as app:
13
+ inp_txt=gr.Textbox()
14
+ btn=gr.Button()
15
+ outp_txt=gr.Textbox()
16
+ btn.click(run_inf,inp_txt,outp_txt)
17
+ app.launch()