Spaces:
Running
on
L4
Running
on
L4
liamcripwell
commited on
Commit
•
b99458b
1
Parent(s):
e9ce3cc
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,13 @@
|
|
1 |
-
|
2 |
-
import
|
3 |
-
|
4 |
import json
|
|
|
|
|
|
|
5 |
import gradio as gr
|
6 |
from urllib.parse import unquote
|
7 |
-
import
|
8 |
-
import re
|
9 |
|
10 |
from data import extract_leaves, split_document, handle_broken_output, clean_json_text, sync_empty_fields
|
11 |
from examples import examples as input_examples
|
|
|
1 |
+
import os
|
2 |
+
import re
|
3 |
+
import time
|
4 |
import json
|
5 |
+
from itertools import cycle
|
6 |
+
|
7 |
+
import torch
|
8 |
import gradio as gr
|
9 |
from urllib.parse import unquote
|
10 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer, StoppingCriteria, StoppingCriteriaList
|
|
|
11 |
|
12 |
from data import extract_leaves, split_document, handle_broken_output, clean_json_text, sync_empty_fields
|
13 |
from examples import examples as input_examples
|