Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,10 @@
|
|
1 |
-
import gradio as gr
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
|
|
|
|
3 |
import torch
|
4 |
import re
|
5 |
from threading import Thread
|
|
|
6 |
from datetime import datetime
|
7 |
from huggingface_hub import HfApi, hf_hub_download
|
8 |
import json
|
|
|
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
2 |
+
import gradio as gr
|
3 |
+
import spaces
|
4 |
import torch
|
5 |
import re
|
6 |
from threading import Thread
|
7 |
+
from typing import Iterator
|
8 |
from datetime import datetime
|
9 |
from huggingface_hub import HfApi, hf_hub_download
|
10 |
import json
|