Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,13 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
|
|
|
| 3 |
|
| 4 |
-
# 1. IMPORT YOUR ACTUAL SCRIPT
|
| 5 |
-
# This pulls in your 'generate_text' function and the 'Were' rule logic
|
| 6 |
-
try:
|
| 7 |
-
from ai_thingy.py import generate_text
|
| 8 |
-
except ImportError:
|
| 9 |
-
# If the file is named slightly differently, adjust the name here
|
| 10 |
-
print("Error: Could not find ai_thingy.py in the current directory.")
|
| 11 |
|
| 12 |
def respond(
|
| 13 |
message,
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
+
from ai_thingy import generate_text
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def respond(
|
| 7 |
message,
|