Spaces:
Runtime error
Runtime error
lorocksUMD
commited on
Commit
•
a18d4e1
1
Parent(s):
7124b11
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,6 @@
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
|
|
3 |
from transformers import AutoTokenizer
|
4 |
from llava.model.language_model.llava_mistral import LlavaMistralForCausalLM
|
5 |
from llava.model.builder import load_pretrained_model
|
@@ -17,6 +18,11 @@ from llava.constants import (
|
|
17 |
)
|
18 |
from llava.conversation import conv_templates, SeparatorStyle
|
19 |
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
|
22 |
|
|
|
1 |
import gradio as gr
|
2 |
from huggingface_hub import InferenceClient
|
3 |
+
|
4 |
from transformers import AutoTokenizer
|
5 |
from llava.model.language_model.llava_mistral import LlavaMistralForCausalLM
|
6 |
from llava.model.builder import load_pretrained_model
|
|
|
18 |
)
|
19 |
from llava.conversation import conv_templates, SeparatorStyle
|
20 |
|
21 |
+
import torch
|
22 |
+
import requests
|
23 |
+
from PIL import Image
|
24 |
+
from io import BytesIO
|
25 |
+
import re
|
26 |
|
27 |
|
28 |
|