Spaces:
Runtime error
Runtime error
saicharan2804
commited on
Commit
·
6a15aff
1
Parent(s):
a085736
Code change
Browse files- app.py +4 -4
- requirements.txt +1 -0
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
-
|
2 |
-
|
3 |
# from pathlib import Path
|
4 |
# import sys
|
5 |
# import os
|
@@ -51,5 +51,5 @@
|
|
51 |
# ###
|
52 |
|
53 |
|
54 |
-
|
55 |
-
|
|
|
1 |
+
import evaluate
|
2 |
+
from evaluate.utils import launch_gradio_widget
|
3 |
# from pathlib import Path
|
4 |
# import sys
|
5 |
# import os
|
|
|
51 |
# ###
|
52 |
|
53 |
|
54 |
+
module = evaluate.load("saicharan2804/my_metric")
|
55 |
+
launch_gradio_widget(module)
|
requirements.txt
CHANGED
@@ -2,3 +2,4 @@ git+https://github.com/molecularsets/moses.git
|
|
2 |
evaluate
|
3 |
rdkit
|
4 |
pandas==1.5.3
|
|
|
|
2 |
evaluate
|
3 |
rdkit
|
4 |
pandas==1.5.3
|
5 |
+
gradio==3.50
|