xnetba commited on
Commit
6f0b5f9
·
1 Parent(s): c70b8a8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,3 +1,10 @@
 
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5").launch()
 
 
 
 
 
 
 
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
+