Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ import gradio as gr
|
|
11 |
@spaces.GPU
|
12 |
def slow_echo(message, history):
|
13 |
for i in range(len(message)):
|
14 |
-
|
15 |
time.sleep(0.05)
|
16 |
|
17 |
yield "You typed: " + message[: i + 1]
|
@@ -31,7 +31,7 @@ if __name__ == "__main__":
|
|
31 |
|
32 |
|
33 |
@spaces.GPU
|
34 |
-
def
|
35 |
# === 1οΈβ£ MODEL VE TOKENIZER YΓKLEME ===
|
36 |
MODEL_NAME = "mistralai/Mistral-7B-v0.1" # Hugging Face model adΔ±
|
37 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|
|
|
11 |
@spaces.GPU
|
12 |
def slow_echo(message, history):
|
13 |
for i in range(len(message)):
|
14 |
+
ana()
|
15 |
time.sleep(0.05)
|
16 |
|
17 |
yield "You typed: " + message[: i + 1]
|
|
|
31 |
|
32 |
|
33 |
@spaces.GPU
|
34 |
+
def ana():
|
35 |
# === 1οΈβ£ MODEL VE TOKENIZER YΓKLEME ===
|
36 |
MODEL_NAME = "mistralai/Mistral-7B-v0.1" # Hugging Face model adΔ±
|
37 |
tokenizer = AutoTokenizer.from_pretrained(MODEL_NAME)
|