Martín Santillán Cooper commited on
Commit
2dbe361
1 Parent(s): 46a13bb

add config

Browse files
Files changed (3) hide show
  1. README.md +12 -1
  2. app.py +1 -6
  3. requirements.txt +4 -0
README.md CHANGED
@@ -1 +1,12 @@
1
- # granite-guardian-demo
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ title: Granite Guardian Demo
3
+ emoji: ⚡
4
+ colorFrom: red
5
+ colorTo: indigo
6
+ sdk: gradio
7
+ sdk_version: 4.44.1
8
+ app_file: app.py
9
+ pinned: false
10
+ short_description: demo
11
+ ---
12
+
app.py CHANGED
@@ -1,14 +1,9 @@
1
- from typing import cast
2
  import gradio as gr
3
  from dotenv import load_dotenv
4
  import json
5
  from generate import generate_text, get_prompt_from_test_case
6
 
7
- load_dotenv()
8
-
9
-
10
-
11
-
12
 
13
  catalog = {}
14
  all_test_cases = []
 
 
1
  import gradio as gr
2
  from dotenv import load_dotenv
3
  import json
4
  from generate import generate_text, get_prompt_from_test_case
5
 
6
+ # load_dotenv()
 
 
 
 
7
 
8
  catalog = {}
9
  all_test_cases = []
requirements.txt ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ gradio>=4.44.1
2
+ python-dotenv>=1.0.1
3
+ tqdm>=4.66.5
4
+