suinY00N commited on
Commit
6333734
1 Parent(s): 8ea44a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -105,7 +105,7 @@ def get_mean_from_proba(proba_list):
105
  return mean
106
 
107
 
108
- def my_inference_function(input):
109
  txt = """
110
  UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington, D.C. 20549 FORM 10-Q (Mark One) ☒ QUARTERLY REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 For the quarterly period ended April 1, 2023 or ☐ TRANSITION REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 For the transition period from to . Commission File Number: 001-36743 Apple Inc. (Exact name of Registrant as specified in its charter) California 94-2404110 (State or other jurisdictionof incorporation or organization) (I.R.S. Employer Identification No.) One Apple Park Way Cupertino, California 95014 (Address of principal executive offices) (Zip Code) (408) 996-1010 (Registrant’s telephone number, including area code) Securities registered pursuant to Section 12(b) of the Act: Title of each class Trading symbol(s) Name of each exchange on which registered Common Stock, $0.00001 par value per share AAPL The Nasdaq Stock Market LLC 1.375% Notes due 2024 The Nasdaq Stock Market LLC 0.000% Notes due 2025 The Nasdaq Stock Market LLC 0.875% Notes due 2025 The Nasdaq Stock Market LLC 1.625% Notes due 2026 The Nasdaq Stock Market LLC 2.000% Notes due 2027
111
  The Nasdaq Stock Market LLC 1.375% Notes due 2029 The Nasdaq Stock Market LLC 3.050% Notes due 2029 The Nasdaq Stock Market LLC 0.500% Notes due 2031 The Nasdaq Stock Market LLC 3.600% Notes due 2042 The Nasdaq Stock Market LLC Indicate by check mark whether the Registrant (1) has filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that the Registrant was required to file such reports), and (2) has been subject to such filing requirements for the past 90 days. Yes ☒ No ☐ Indicate by check mark whether the Registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T (§232.405 of this chapter) during the preceding 12 months (or for such shorter period that the Registrant was required to submit such files). Yes ☒ No ☐ Indicate by check mark whether the Registrant is a large accelerated filer, an accelerated filer, a non-accelerated filer, a smaller reporting company, or an emerging growth company. See the definitions of “large accelerated filer,” “accelerated filer,” “smaller reporting company,” and “emerging growth company” in Rule 12b-2 of the Exchange Act.
@@ -144,9 +144,9 @@ def my_inference_function(input):
144
 
145
  gr_interface = gradio.Interface(
146
  fn = my_inference_function,
 
147
  inputs = "text",
148
- outputs = "text",
149
- # title= "Sentiment Analysis"
150
  )
151
 
152
  gr_interface.launch()
 
105
  return mean
106
 
107
 
108
+ def my_inference_function(sec_text):
109
  txt = """
110
  UNITED STATES SECURITIES AND EXCHANGE COMMISSION Washington, D.C. 20549 FORM 10-Q (Mark One) ☒ QUARTERLY REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 For the quarterly period ended April 1, 2023 or ☐ TRANSITION REPORT PURSUANT TO SECTION 13 OR 15(d) OF THE SECURITIES EXCHANGE ACT OF 1934 For the transition period from to . Commission File Number: 001-36743 Apple Inc. (Exact name of Registrant as specified in its charter) California 94-2404110 (State or other jurisdictionof incorporation or organization) (I.R.S. Employer Identification No.) One Apple Park Way Cupertino, California 95014 (Address of principal executive offices) (Zip Code) (408) 996-1010 (Registrant’s telephone number, including area code) Securities registered pursuant to Section 12(b) of the Act: Title of each class Trading symbol(s) Name of each exchange on which registered Common Stock, $0.00001 par value per share AAPL The Nasdaq Stock Market LLC 1.375% Notes due 2024 The Nasdaq Stock Market LLC 0.000% Notes due 2025 The Nasdaq Stock Market LLC 0.875% Notes due 2025 The Nasdaq Stock Market LLC 1.625% Notes due 2026 The Nasdaq Stock Market LLC 2.000% Notes due 2027
111
  The Nasdaq Stock Market LLC 1.375% Notes due 2029 The Nasdaq Stock Market LLC 3.050% Notes due 2029 The Nasdaq Stock Market LLC 0.500% Notes due 2031 The Nasdaq Stock Market LLC 3.600% Notes due 2042 The Nasdaq Stock Market LLC Indicate by check mark whether the Registrant (1) has filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that the Registrant was required to file such reports), and (2) has been subject to such filing requirements for the past 90 days. Yes ☒ No ☐ Indicate by check mark whether the Registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T (§232.405 of this chapter) during the preceding 12 months (or for such shorter period that the Registrant was required to submit such files). Yes ☒ No ☐ Indicate by check mark whether the Registrant is a large accelerated filer, an accelerated filer, a non-accelerated filer, a smaller reporting company, or an emerging growth company. See the definitions of “large accelerated filer,” “accelerated filer,” “smaller reporting company,” and “emerging growth company” in Rule 12b-2 of the Exchange Act.
 
144
 
145
  gr_interface = gradio.Interface(
146
  fn = my_inference_function,
147
+ title = "Sentiment Analysis"
148
  inputs = "text",
149
+ outputs = "text"
 
150
  )
151
 
152
  gr_interface.launch()