Update app.py
Browse files
app.py
CHANGED
@@ -220,7 +220,7 @@ def save_game(name,score):
|
|
220 |
except Exception as e:
|
221 |
print (e)
|
222 |
return f'Error Saving Game: {e}'
|
223 |
-
return f"Game Saved
|
224 |
def predict(text, url_params):
|
225 |
load_game=url_params.get('game')
|
226 |
print (f'load_game::{load_game}')
|
@@ -278,7 +278,7 @@ with gr.Blocks() as app:
|
|
278 |
with gr.Row():
|
279 |
game_name=gr.Textbox(label="Name for Game (optional)")
|
280 |
save_btn=gr.Button("Save")
|
281 |
-
message=gr.
|
282 |
with gr.Row(visible=False):
|
283 |
get_score=gr.Button("Get Score")
|
284 |
score=gr.Textbox()
|
|
|
220 |
except Exception as e:
|
221 |
print (e)
|
222 |
return f'Error Saving Game: {e}'
|
223 |
+
return f"Game Saved<br>URL: <a href={game_url}>{game_url}</a>"
|
224 |
def predict(text, url_params):
|
225 |
load_game=url_params.get('game')
|
226 |
print (f'load_game::{load_game}')
|
|
|
278 |
with gr.Row():
|
279 |
game_name=gr.Textbox(label="Name for Game (optional)")
|
280 |
save_btn=gr.Button("Save")
|
281 |
+
message=gr.HTML()
|
282 |
with gr.Row(visible=False):
|
283 |
get_score=gr.Button("Get Score")
|
284 |
score=gr.Textbox()
|