Geek7 commited on
Commit
d789aff
1 Parent(s): cafd10e

Update myapp.py

Browse files
Files changed (1) hide show
  1. myapp.py +5 -0
myapp.py CHANGED
@@ -15,6 +15,11 @@ HF_TOKEN = os.environ.get("HF_TOKEN") # Hugging Face token
15
 
16
  inference_timeout = 600 # Set timeout for inference
17
 
 
 
 
 
 
18
  # Function to dynamically load models from the "models" list
19
  def get_model_from_name(model_name):
20
  return model_name if model_name in models else None
 
15
 
16
  inference_timeout = 600 # Set timeout for inference
17
 
18
+ @myapp.route('/')
19
+ def home():
20
+ return "Welcome to the Text to Image Generation!" # Basic home response
21
+
22
+
23
  # Function to dynamically load models from the "models" list
24
  def get_model_from_name(model_name):
25
  return model_name if model_name in models else None