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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
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
- return this(inp)
 
 
 
 
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()