measmonysuon commited on
Commit
aed520d
1 Parent(s): 7437a2c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -181,9 +181,11 @@ def create_gradio_interface(user_chat_id):
181
  return interface
182
 
183
  def launch_gradio():
184
- # Dynamically obtain the URL, e.g., from an environment variable
185
- url = os.getenv('USER_CHAT_ID_URL', 'http://example.com?user_chat_id=Guest')
186
  user_chat_id = extract_user_chat_id_from_url(url)
 
 
187
  interface = create_gradio_interface(user_chat_id)
188
  interface.launch()
189
 
 
181
  return interface
182
 
183
  def launch_gradio():
184
+ # Obtain the URL dynamically (from a configured environment variable or similar)
185
+ url = 'https://measmonysuon-imagen.hf.space/?user_chat_id=75516649' # Replace with the actual URL or method to obtain it
186
  user_chat_id = extract_user_chat_id_from_url(url)
187
+
188
+ # Pass the extracted user_chat_id to the Gradio interface
189
  interface = create_gradio_interface(user_chat_id)
190
  interface.launch()
191