Spaces:
Runtime error
Runtime error
measmonysuon
commited on
Commit
•
aed520d
1
Parent(s):
7437a2c
Update app.py
Browse files
app.py
CHANGED
@@ -181,9 +181,11 @@ def create_gradio_interface(user_chat_id):
|
|
181 |
return interface
|
182 |
|
183 |
def launch_gradio():
|
184 |
-
#
|
185 |
-
url =
|
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 |
|