Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import gradio as gr
|
|
| 2 |
from synthgen import generate_synthetic_text, api_key # Import from our modified synthgen
|
| 3 |
|
| 4 |
# Check if the API key was loaded successfully (provides feedback in Gradio UI)
|
| 5 |
-
api_key_loaded =
|
| 6 |
|
| 7 |
def run_generation(prompt: str, model: str, num_samples: int) -> str:
|
| 8 |
"""
|
|
|
|
| 2 |
from synthgen import generate_synthetic_text, api_key # Import from our modified synthgen
|
| 3 |
|
| 4 |
# Check if the API key was loaded successfully (provides feedback in Gradio UI)
|
| 5 |
+
api_key_loaded = True
|
| 6 |
|
| 7 |
def run_generation(prompt: str, model: str, num_samples: int) -> str:
|
| 8 |
"""
|