Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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()
|