testChat / app.py
xnetba's picture
Update app.py
6f0b5f9
raw
history blame
269 Bytes
import os
import gradio as gr
api_url = os.getenv("OPENCHAT_API_URL")
if not api_url:
raise ValueError("Please set the environment variable OPENCHAT_API_URL.")
gr.Interface.load("models/OpenAssistant/oasst-sft-4-pythia-12b-epoch-3.5", api_url=api_url).launch()