suwesh commited on
Commit
fd81245
·
verified ·
1 Parent(s): 7291a79

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
- #import sqlite3
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
  """