Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -2,12 +2,13 @@ import gradio as gr
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
import torch
|
5 |
-
|
6 |
import json
|
7 |
from db_setup import setup_database
|
8 |
#setup database
|
9 |
setup_database()
|
10 |
-
|
|
|
11 |
"""
|
12 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
13 |
"""
|
|
|
2 |
from huggingface_hub import InferenceClient
|
3 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
4 |
import torch
|
5 |
+
import sqlite3
|
6 |
import json
|
7 |
from db_setup import setup_database
|
8 |
#setup database
|
9 |
setup_database()
|
10 |
+
conn = sqlite3.connect('sfdc_la.db')
|
11 |
+
cursor = conn.cursor()
|
12 |
"""
|
13 |
For more information on `huggingface_hub` Inference API support, please check the docs: https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
14 |
"""
|