ohalkhateeb commited on
Commit
a311f5b
·
verified ·
1 Parent(s): e3db217

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -4
app.py CHANGED
@@ -1,5 +1,9 @@
1
  import gradio as gr
2
 
 
 
 
 
3
  # Placeholder response function
4
  def get_response(user_message):
5
  return f"رد تلقائي: {user_message}" # Replace this with your AI model
@@ -29,7 +33,4 @@ with gr.Blocks(title="المتحدث الآلي للتشريعات المحلي
29
 
30
 
31
  # Launch the app
32
- if int(gradio_version.split('.')[0]) >= 3:
33
- demo.launch(css=css_path, share=True)
34
- else:
35
- demo.launch(share=True)
 
1
  import gradio as gr
2
 
3
+ # Define gradio_version at the start
4
+ gradio_version = gr.__version__
5
+ print(f"Using Gradio version: {gradio_version}")
6
+
7
  # Placeholder response function
8
  def get_response(user_message):
9
  return f"رد تلقائي: {user_message}" # Replace this with your AI model
 
33
 
34
 
35
  # Launch the app
36
+ demo.launch(css=css_path, share=True)