fix gradio
Browse files
app.py
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
from fastapi import FastAPI, Request
|
3 |
import uvicorn
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
# If you want Gradio to run on a particular host/port, you can do this:
|
4 |
+
os.environ["GRADIO_SERVER_NAME"] = "0.0.0.0"
|
5 |
+
os.environ["GRADIO_SERVER_PORT"] = "7860"
|
6 |
+
|
7 |
+
|
8 |
import gradio as gr
|
9 |
from fastapi import FastAPI, Request
|
10 |
import uvicorn
|