Update app.py
Browse files
app.py
CHANGED
@@ -1,3 +1,10 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
|
4 |
+
api_url = os.getenv("OPENCHAT_API_URL")
|
5 |
+
|
6 |
+
if not api_url:
|
7 |
+
raise ValueError("Please set the environment variable OPENCHAT_API_URL.")
|
8 |
+
|
9 |
+
gr.Interface.load("models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5", api_url=api_url).launch()
|
10 |
+
|