Spaces:
Paused
Paused
| import os | |
| import gradio as gr | |
| def start_app(telegram_token: str, ngrok_token: str): | |
| cmnd = f"bash run_with_ngrok.sh {telegram_token} {ngrok_token}" | |
| os.system(cmnd) | |
| return 'Application started' | |
| demo = gr.Interface( | |
| start_app, | |
| [gr.Textbox(label="Telegram Token"),gr.Textbox(label="NGROK Token")], | |
| [gr.Textbox(label="Result")] | |
| ).launch() |