seawolf2357 commited on
Commit
8393c96
Β·
verified Β·
1 Parent(s): ee1b591

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -111,6 +111,8 @@ if __name__ == "__main__":
111
  discord_client = MyClient(intents=intents)
112
  discord_client.run(discord_token)
113
 
114
- # λ³„λ„μ˜ μŠ€λ ˆλ“œμ—μ„œ Gradio μΈν„°νŽ˜μ΄μŠ€ μ‹€ν–‰
115
- gradio_thread = threading.Thread(target=run_gradio)
116
- gradio_thread.start()
 
 
 
111
  discord_client = MyClient(intents=intents)
112
  discord_client.run(discord_token)
113
 
114
+ # Gradio μΈν„°νŽ˜μ΄μŠ€ μ„€μ •
115
+ iface = gr.Interface(fn=my_model_function, inputs="text", outputs="image")
116
+
117
+ # μΈν„°νŽ˜μ΄μŠ€ μ‹€ν–‰, 였λ₯˜ λ³΄μ—¬μ£ΌλŠ” μ˜΅μ…˜ ν™œμ„±ν™”
118
+ iface.launch(show_error=True)