Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,6 +66,7 @@ def RunLegalModel(text, model):
|
|
66 |
pettyfogger = pipeline("text-generation", model=model)
|
67 |
if text is not None:
|
68 |
shoddyadvice = pettyfogger(text)
|
|
|
69 |
return shoddyadvice[0]['generated_text']
|
70 |
|
71 |
radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], value="microsoft/resnet-50", label="Select a Classifier", info="Image Classifier")
|
|
|
66 |
pettyfogger = pipeline("text-generation", model=model)
|
67 |
if text is not None:
|
68 |
shoddyadvice = pettyfogger(text)
|
69 |
+
print(shoddyadvice)
|
70 |
return shoddyadvice[0]['generated_text']
|
71 |
|
72 |
radio1 = gr.Radio(["microsoft/resnet-50", "google/vit-base-patch16-224", "apple/mobilevit-small"], value="microsoft/resnet-50", label="Select a Classifier", info="Image Classifier")
|