RoAr777 commited on
Commit
df1c8f6
·
verified ·
1 Parent(s): 037cc9d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -450,7 +450,18 @@ with gr.Blocks(theme=gr.themes.Soft(),css="footer {visibility: hidden}") as ifac
450
 
451
  chatbot.like(vote, None, None) # Adding like/dislike functionality to the chatbot
452
 
453
-
 
 
 
 
 
 
 
 
 
 
454
  iface.launch(
455
- show_error=True
 
456
  )
 
450
 
451
  chatbot.like(vote, None, None) # Adding like/dislike functionality to the chatbot
452
 
453
+ import gradio as gr
454
+ from gradio_client import utils
455
+
456
+ # Monkey-patch the buggy get_type function to handle bool schemas
457
+ original_get_type = utils.get_type
458
+ def patched_get_type(schema):
459
+ if isinstance(schema, bool):
460
+ return "bool" # Or raise a custom error; treat bool as literal type
461
+ return original_get_type(schema)
462
+ utils.get_type = patched_get_type
463
+
464
  iface.launch(
465
+ show_error=True,
466
+ share=True,
467
  )