File size: 659 Bytes
f30c33c
f5ab101
bb82692
f5ab101
4327cda
bb82692
 
 
 
 
 
 
 
 
 
f5ab101
 
4327cda
f5ab101
 
 
53037ce
f30c33c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import os
import gradio as gr
from dotenv import load_dotenv
from src.app import DryingApp

# Load environment variables
load_dotenv()

# Check if API keys are available
if not os.getenv("OPENROUTER_API_KEY"):
    print("Warning: OPENROUTER_API_KEY environment variable not set")
    
if not os.getenv("STABILITY_API_KEY"):
    print("Warning: STABILITY_API_KEY environment variable not set")

# Initialize the Drying Assistant application
app = DryingApp()

# Create the Gradio interface
demo = app.create_interface()

# This is important for Hugging Face Spaces to recognize the application
demo.launch(server_name="0.0.0.0", server_port=7860, share=False)