Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,11 @@ import gradio as gr
|
|
7 |
this = gr.load("models/keyfan/grok-1-hf",cache_examples=False)
|
8 |
print(this)
|
9 |
def run_inf(inp):
|
10 |
-
|
|
|
|
|
|
|
|
|
11 |
|
12 |
with gr.Blocks() as app:
|
13 |
inp_txt=gr.Textbox()
|
|
|
7 |
this = gr.load("models/keyfan/grok-1-hf",cache_examples=False)
|
8 |
print(this)
|
9 |
def run_inf(inp):
|
10 |
+
try:
|
11 |
+
out=this(inp)
|
12 |
+
except Exception as e:
|
13 |
+
out=e
|
14 |
+
return out
|
15 |
|
16 |
with gr.Blocks() as app:
|
17 |
inp_txt=gr.Textbox()
|