measmonysuon commited on
Commit
d092f1e
·
verified ·
1 Parent(s): bc2f2b6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -63,11 +63,6 @@ chat_session = model.start_chat(
63
  ]
64
  )
65
 
66
- @app.route('/')
67
- def index():
68
- # Serve HTML content
69
- return send_from_directory(directory='.', path='aforativemedia.html')
70
-
71
 
72
  def generate_response(user_input):
73
  """Generate a response using Google Generative AI."""
@@ -91,6 +86,12 @@ iface = gr.Interface(
91
  live=True
92
  )
93
 
 
 
 
 
 
 
94
  def run_gradio():
95
  iface.launch(share=True, inbrowser=False)
96
 
 
63
  ]
64
  )
65
 
 
 
 
 
 
66
 
67
  def generate_response(user_input):
68
  """Generate a response using Google Generative AI."""
 
86
  live=True
87
  )
88
 
89
+ @app.route('/')
90
+ def index():
91
+ # Serve HTML content
92
+ return send_from_directory(directory='.', path='aforativemedia.html')
93
+
94
+
95
  def run_gradio():
96
  iface.launch(share=True, inbrowser=False)
97