Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import os
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
UseMemory=True
|
3 |
HF_TOKEN=os.environ.get("HF_TOKEN")
|
4 |
|
|
|
1 |
+
from transformers import BlenderbotTokenizer, BlenderbotForConditionalGeneration
|
2 |
+
import torch
|
3 |
+
import gradio as gr
|
4 |
+
from datasets import load_dataset
|
5 |
+
|
6 |
+
# PersistDataset -----
|
7 |
import os
|
8 |
+
import csv
|
9 |
+
from gradio import inputs, outputs
|
10 |
+
import huggingface_hub
|
11 |
+
from huggingface_hub import Repository, hf_hub_download, upload_file
|
12 |
+
from datetime import datetime
|
13 |
+
|
14 |
+
#fastapi is where its at: share your app, share your api
|
15 |
+
import fastapi
|
16 |
+
|
17 |
+
from typing import List, Dict
|
18 |
+
import httpx
|
19 |
+
import pandas as pd
|
20 |
+
import datasets as ds
|
21 |
+
|
22 |
UseMemory=True
|
23 |
HF_TOKEN=os.environ.get("HF_TOKEN")
|
24 |
|