kasim90 commited on
Commit
9638589
Β·
verified Β·
1 Parent(s): a4d941b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- main()
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 main():
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)