File size: 360 Bytes
17cf727 81d944c 2d85383 43ec0d8 2d85383 baa0685 43ec0d8 90d0791 baa0685 43ec0d8 |
1 2 3 4 5 6 7 8 9 10 11 12 |
import gradio as gr
import os
# Fetch token and model information
token = os.environ["TOKEN"]
model = os.environ["MODEL"]
# Load the model from Hugging Face Spaces
demo = gr.load(model, src="spaces", token=token)
# Launch without 'fn', as it's not a valid argument for the launch method
demo.launch(show_api=False, show_error=False, quiet=True, debug=False) |